load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "exit",
    srcs = [
        "codes.go",
        "doc.go",
        "exit.go",
    ],
    importpath = "github.com/cockroachdb/cockroach/pkg/cli/exit",
    visibility = ["//visibility:public"],
    deps = ["@com_github_cockroachdb_redact//:redact"],
)

go_test(
    name = "exit_test",
    size = "small",
    srcs = ["codes_test.go"],
    embed = [":exit"],
)
